package com.seawaterbt.ssm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seawaterbt.ssm.config.DataSource;
import com.seawaterbt.ssm.config.DataSourceEnum;
import com.seawaterbt.ssm.entity.CzDatCrewDataHistory;
import com.seawaterbt.ssm.entity.CzDatHeatSourceOutletDataHistory;
import com.seawaterbt.ssm.mapper.CzDatHeatSourceOutletDataHistoryMapper;
import com.seawaterbt.ssm.service.CzDatHeatSourceOutletDataHistoryService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhf
 * @since 2019-10-31
 */
@Service
public class CzDatHeatSourceOutletDataHistoryServiceImpl extends ServiceImpl<CzDatHeatSourceOutletDataHistoryMapper, CzDatHeatSourceOutletDataHistory> implements CzDatHeatSourceOutletDataHistoryService {

    @DataSource(DataSourceEnum.DB2)
    @Override
    public boolean saveOrUpdate(CzDatHeatSourceOutletDataHistory entity) {
        return super.saveOrUpdate(entity);
    }
    @DataSource(DataSourceEnum.DB2)
    @Override
    public boolean save(CzDatHeatSourceOutletDataHistory entity) {
        return super.save(entity);
    }
}
